package zucc.edu.cn.chengchengparttime;

public class Work {
    public long WorkID;
    public String WorkSerials;
    public String WorkName;
    public String WorkContent;
    public String WorkTime;
    public String WorkArea;
    public double SalaryPerHour;
    public String PaymentWay;
    public String PublisherInfo;
    public String PublisherName;
    public int NumOfLikes;

    public Work(long workID, String workSerials, String workName, String workContent, String workTime, String workArea, double salaryPerHour, String paymentWay, String publisherInfo, String publisherName, int numOfLikes) {
        WorkID = workID;
        WorkSerials = workSerials;
        WorkName = workName;
        WorkContent = workContent;
        WorkTime = workTime;
        WorkArea = workArea;
        SalaryPerHour = salaryPerHour;
        PaymentWay = paymentWay;
        PublisherInfo = publisherInfo;
        PublisherName = publisherName;
        NumOfLikes = numOfLikes;
    }

    public Work(String workSerials, String workName, String workContent, String workTime, String workArea, double salaryPerHour, String paymentWay, String publisherInfo, String publisherName, int numOfLikes) {
        WorkID=-1;
        WorkSerials = workSerials;
        WorkName = workName;
        WorkContent = workContent;
        WorkTime = workTime;
        WorkArea = workArea;
        SalaryPerHour = salaryPerHour;
        PaymentWay = paymentWay;
        PublisherInfo = publisherInfo;
        PublisherName = publisherName;
        NumOfLikes = numOfLikes;
    }

    public long getWorkID() {
        return WorkID;
    }

    public void setWorkID(long workID) {
        WorkID = workID;
    }

    public String getWorkSerials() {
        return WorkSerials;
    }

    public void setWorkSerials(String workSerials) {
        WorkSerials = workSerials;
    }

    public String getWorkName() {
        return WorkName;
    }

    public void setWorkName(String workName) {
        WorkName = workName;
    }

    public String getWorkContent() {
        return WorkContent;
    }

    public void setWorkContent(String workContent) {
        WorkContent = workContent;
    }

    public String getWorkTime() {
        return WorkTime;
    }

    public void setWorkTime(String workTime) {
        WorkTime = workTime;
    }

    public String getWorkArea() {
        return WorkArea;
    }

    public void setWorkArea(String workArea) {
        WorkArea = workArea;
    }

    public double getSalaryPerHour() {
        return SalaryPerHour;
    }

    public void setSalaryPerHour(double salaryPerHour) {
        SalaryPerHour = salaryPerHour;
    }

    public String getPaymentWay() {
        return PaymentWay;
    }

    public void setPaymentWay(String paymentWay) {
        PaymentWay = paymentWay;
    }

    public String getPublisherInfo() {
        return PublisherInfo;
    }

    public void setPublisherInfo(String publisherInfo) {
        PublisherInfo = publisherInfo;
    }

    public String getPublisherName() {
        return PublisherName;
    }

    public void setPublisherName(String publisherName) {
        PublisherName = publisherName;
    }

    public int getNumOfLikes() {
        return NumOfLikes;
    }

    public void setNumOfLikes(int numOfLikes) {
        NumOfLikes = numOfLikes;
    }

    @Override
    public String toString() {
        return "Work{" +
                "WorkID=" + WorkID +
                ", WorkSerials='" + WorkSerials + '\'' +
                ", WorkName='" + WorkName + '\'' +
                ", WorkContent='" + WorkContent + '\'' +
                ", WorkTime='" + WorkTime + '\'' +
                ", WorkArea='" + WorkArea + '\'' +
                ", SalaryPerHour=" + SalaryPerHour +
                ", PaymentWay='" + PaymentWay + '\'' +
                ", PublisherInfo='" + PublisherInfo + '\'' +
                ", PublisherName='" + PublisherName + '\'' +
                ", NumOfLikes=" + NumOfLikes +
                '}';
    }
}
